import request from '@/utils/request';

export default {
  // 新增，编辑
  modify(data) {
    return request({
      url: '/api/dict/edit',
      method: 'POST',
      data
    })
  },
  // 获取权限组列表
  list(data) {
    return request({
      url: '/api/dict/list',
      method: 'POST',
      data
    })
  },
  //详情
  detail(data) {
    return request({
      url: '/api/dict/detail',
      method: 'POST',
      data
    })
  },
  del(data) {
    return request({
      url: '/api/dict/del',
      method: 'POST',
      data
    })
  },
  enable(data) {
    return request({
      url: '/api/dict/enable',
      method: 'POST',
      data
    })
  },
  trees() {
    return request({
      url: '/api/dict/trees',
      method: 'GET'
    })
  },
  treesQuery(data) {
    return request({
      url: '/api/dict/trees/query',
      method: 'POST',
      data
    })
  }
}
